package com.suming.springboot_game.mapper;
import com.suming.springboot_game.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper {
    Integer recruit(Role role);

    List<Role> selectAll();

    Integer dismiss(List<Integer> ids);

    List<Role> selectPage(Integer pageNum, Integer pageSize, String name);

    Integer countByName(String name);
}
